//
//  SinaPictureViewCell.m
//  oc微博
//
//  Created by 安陆与 on 16/1/25.
//  Copyright © 2016年 安陆与. All rights reserved.
//

#import "SinaPictureViewCell.h"
#import "UIImageView+WebCache.h"
#import <UIKit/UIKit.h>

@interface  SinaPictureViewCell()

@property (nonatomic, weak) UIImageView *imageView;

@end

@implementation SinaPictureViewCell

-(void)setPictureName:(NSURL *)pictureName{

    if (pictureName) {
        
        _pictureName = pictureName;
        [self.imageView sd_setImageWithURL:pictureName];
    }


}

-(instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    
    return self;
}

-(void)setupUI{

    UIImageView *imageView = [[UIImageView alloc]init];
    
    [self addSubview:imageView];
    
    self.imageView = imageView;
    
    imageView.frame = self.bounds;
}


@end
